]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: use Meta.MonitorManager.get_display_configuration_timeout()
authorCosimo Cecchi <cosimo@endlessm.com>
Sat, 18 Jun 2016 00:14:02 +0000 (17:14 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 31 Jul 2017 14:37:34 +0000 (15:37 +0100)
Instead of hardcoding a 20 seconds limit.

https://bugzilla.gnome.org/show_bug.cgi?id=767805

js/ui/windowManager.js

index 272dbec89287fc4200afe46b7d9910c83138bac2..eac38899469a92d319eeae9742ef0d4cea0000ed 100644 (file)
@@ -33,7 +33,6 @@ var DIM_BRIGHTNESS = -0.3;
 var DIM_TIME = 0.500;
 var UNDIM_TIME = 0.250;
 
-var DISPLAY_REVERT_TIMEOUT = 20; // in seconds - keep in sync with mutter
 var ONE_SECOND = 1000; // in ms
 
 const GSD_WACOM_BUS_NAME = 'org.gnome.SettingsDaemon.Wacom';
@@ -64,7 +63,7 @@ var DisplayChangeDialog = new Lang.Class({
 
         this._wm = wm;
 
-        this._countDown = DISPLAY_REVERT_TIMEOUT;
+        this._countDown = Meta.MonitorManager.get_display_configuration_timeout();
 
         let iconName = 'preferences-desktop-display-symbolic';
         let icon = new Gio.ThemedIcon({ name: iconName });